Assignment 5

Due Monday, April 11, 2005

Add the following menus to the program you developed for the previous assignment. Use switch statements for the menus.

    Main Menu

  1. Customer menu
  2. Product menu
  3. Supplier menu
  4. Agent menu
  5. Order menu
  6. Exit the system

   Customer Menu

  1. Add a customer
  2. Select customer (user provides customer id)
  3. Display selected customer information
  4. Go to main menu

   Supplier Menu

  1. Add a supplier
  2. Select supplier (user provides supplier id)
  3. Display selected supplier information
  4. Go to main menu

   Product Menu

  1. Add a product
  2. Select product (user provides product id)
  3. Display selected product information
  4. Go to main menu

   Agent Menu

  1. Add an agent
  2. Select agent (user provides agent id)
  3. Display selected agent information
  4. Go to main menu

  Order Menu

  1. Add an order
  2. Select order (user provides order id)
  3. Display selected order information
  4. Go to main menu

Model your code using the following class. The functionality provided by each menu option (in every menu) will be contained in a separate method!

Here is an updated version of InfoManager that uses an array of customers.